package cn.codecang.mall.common.exception;

import cn.codecang.mall.common.consts.ErrorCode;
import lombok.Getter;

/**
 * CustomException 自定义异常处理类
 *
 * @author xiaoluo
 * @date 2023/6/3 22:39
 */
@Getter
public class CustomException extends RuntimeException {
    private final ErrorCode code;

    public CustomException(ErrorCode code) {
        this.code = code;
    }
}
